package com.cl.ks.enums;

public enum TargetType {
    KS_FLOW_GRAPH("ks_flow_graph"),
    KS_RULE("ks_rule");

    private final String value;

    TargetType(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public static TargetType fromValue(String value) {
        for (TargetType targetType : TargetType.values()) {
            if (targetType.getValue().equals(value)) {
                return targetType;
            }
        }
        throw new IllegalArgumentException("Invalid target type: " + value);
    }
}
